package com.qys.livesMall.app.user.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户资金表
 * </p>
 *
 * @author dp
 * @since 2023-04-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("h2_app_user_balance")
@Schema(name = "H2AppUserBalance对象", description = "用户资金表")
public class H2AppUserBalance implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @Schema(description = "用户id")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "用户名")
    @TableField("user_name")
    private String userName;

    @Schema(description = "余额")
    @TableField("balance")
    private BigDecimal balance;

    @Schema(description = "订单收益")
    @TableField("gift_income")
    private BigDecimal giftIncome;

    @Schema(description = "订单收益")
    @TableField("order_income")
    private BigDecimal orderIncome;

    @Schema(description = "后台增加")
    @TableField("system_increase")
    private BigDecimal systemIncrease;

    @Schema(description = "代理收益")
    @TableField("agency_income")
    private BigDecimal agencyIncome;

    @Schema(description = "总充值金额")
    @TableField("recharge_income")
    private BigDecimal rechargeIncome;

    @Schema(description = "总提现金额")
    @TableField("withdraw_cash")
    private BigDecimal withdrawCash;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Schema(description = "创建人名字")
    @TableField("create_by")
    private String createBy;

    @Schema(description = "更新人")
    @TableField("update_by")
    private String updateBy;


}
